package com.woniu.web.service.impl;

import com.woniu.common.entity.TbJpMalfunction;
import com.woniu.common.entity.TbJpMalfunctionExample;
import com.woniu.web.mapper.TbJpMaintainDao;
import com.woniu.web.mapper.TbJpMalfunctionDao;
import com.woniu.web.service.TbJpMalfunctionService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author jiaoxiuxiu
 * @date 2020/9/28 12:08
 */
@Service
@Transactional
public class TbJpMalfunctionServiceImpl implements TbJpMalfunctionService {
    @Resource
    TbJpMalfunctionDao tbJpMalfunctionDao;
    @Override
    public List findByBedId(Integer id) {
        TbJpMalfunctionExample example=new TbJpMalfunctionExample();
        TbJpMalfunctionExample.Criteria criteria = example.createCriteria().andBedidEqualTo(id);
        return tbJpMalfunctionDao.selectByExample(example);
    }
}
